package com.zhentao.mapper;

import com.zhentao.model.common.article.dto.ArticleHomeDto;
import com.zhentao.model.common.dtos.ApArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【ap_article(文章信息表，存储已发布的文章)】的数据库操作Mapper
* @createDate 2024-06-01 10:28:32
* @Entity com.zhentao.model.common.dtos.ApArticle
*/
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    /**
     * @param articleHomeDto
     * @param type 加载类型  默认 向上滚动 向下滚动
     * @return
     */
    List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto articleHomeDto,
                                    @Param("type") Integer type);
}




